import request from '@/utils/request'

// 登录请求
export function loginAPI(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

// 获取用户资料请求
export function getInfoAPI() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

// 获取用户详细信息，要带上用户的id
export function getDetailUserInfoAPI(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'GET'
  })
}

// 退出请求
export function logoutAPI() {}
